/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2024-08-21 10:56:51
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2024-08-21 10:58:56
 * @FilePath: /vue3-uniapp/src/service/useMescrollHeight.ts
 */
export const useMescrollHeight = () => {
    const topHeight = ref(0);
    const bottomHeight = ref(0);
    const mescrollHeight = computed(() => {
        return (
            uni.$uv.sys().screenHeight -
            topHeight.value -
            bottomHeight.value +
            'px'
        );
    });
    return {
        topHeight,
        bottomHeight,
        mescrollHeight
    };
};
